<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function foo() {
            console.log('foo', this);
        }
        // 隐式绑定
        var obj = {
            name: "obj",
            bar: foo
        }
        obj.bar()// obj
        new obj.bar()// {} new 大于
        var bindFn = foo.bind('bind')
        new bindFn();// {} new 
        bindFn.call('cell')
        bindFn.apply('apply')
        // new 大于 显示绑定 大于隐式绑定
        // new > bind > call|apply>隐式绑定
    </script>
</body>

</html>